import request from '@/utils/request'

export function fetchcolumnList(data) {
  return request({
    url: '/system/metadata/column/list',
    method: 'post',
    data
  })
}

export function getcolumn(id) {
  return request({
    url: '/system/metadata/column/detail/' + id,
    method: 'get',
    params: { id }
  })
}

export function createcolumn(data) {
  return request({
    url: '/system/metadata/column/add',
    method: 'post',
    data
  })
}

export function updatecolumn(data) {
  return request({
    url: '/system/metadata/column/update',
    method: 'post',
    data
  })
}

export function deletecolumn(ids) {
  return request({
    url: '/system/metadata/column/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportcolumn(ids) {
  return request({
    url: '/system/metadata/column/export',
    method: 'post',
    data: {ids}
  })
}

export function addMetaModel(data) {
  return request({
    url: '/system/metamodel/add',
    method: 'post',
    data
  })
}



export function addoneMetaModel(data) {
  return request({
    url: '/system/metamodel/treeListIsDirectory',
    method: 'post',
    data
  })
}

export function oracleCountTableTotalModel(data) {
  return request({
    url: '/system/dataextraction/DataExtractionTask/oracleCountTableTotal',
    method: 'post',
    data
  })
}

